DEF_PROJECT=../../..
include $(DEF_PROJECT)/scripts/main.mk
name=net-tools
version=1.60
prefix=/usr
destdir=$(DIR_SYSROOT)
extdeps=eglibc-tools gcc-tools binutils-tools linux-header-tools
patch=net-tools-1.60-gcc34-3.patch net-tools-1.60-kernel_headers-4.patch net-tools-1.60-mii_ioctl-1.patch net-tools-1.60-supress_hostname-1.patch

DL_SERV=http
DL_HOST=www.tazenda.demon.co.uk
DL_PATH=phil/$(name)
DL_SUFFIX=tar.bz2

mflags+=CC=$(addsuffix -,$(CC_TARGET))gcc

iflags=BASEDIR=$(destdir) install

pre-build:
	yes|$(MAKE) -C $(if $(build),$(build),$(source)) config
	sed -i 's/#define HAVE_HWEC 1/#define HAVE_HWEC 0/' $(source)/config.h
	sed -i 's/HAVE_HWEC=1/HAVE_HWEC=0/' $(source)/config.make

